#include "AlgebraicSum.h"



QRgb AlgebraicSum::__doOperation (QRgb c1, QRgb c2)
{
	c1 = qRgba ((qRed (c1) + qRed (c2)) / 2,
			(qGreen (c1) + qGreen (c2)) / 2,
			(qBlue (c1) + qBlue (c2)) / 2, qAlpha (c1));
	return __super::__doOperation(c1, c2);
}

AlgebraicSum::AlgebraicSum () : AlgebraicOperation ("Sum")
{

}
